package com.bupt.smart.application;

import android.app.Application;

import com.bupt.smart.model.User;

import cn.jpush.android.api.JPushInterface;
import cn.smssdk.SMSSDK;

/**
 * Created by ght on 2016/4/5.
 */
public class CustomApplication extends Application{
    private static User userInfo;

    @Override
    public void onCreate() {
        super.onCreate();
        init();
    }

    private void init() {
        //初始化mob短信验证码SDK
        SMSSDK.initSDK(this, "114635466cc55", "7455aba63f5656dfbab89edb95d26ada");
        //初始化极光推送SDK
        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);
    }

    public User getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(User userInfo) {
        this.userInfo = userInfo;
    }
}
